/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package adsreis.com.acessobd;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author Pauroenriki
 */
public class VerificaAcesso {
    
    Connection con;
    PreparedStatement pstm;
    ResultSet rs;
    String verifica = "SHOW GRANTS FOR 'jose'@'localhost';";
    String resultado;
    
    
    
    public boolean Vericar() throws SQLException{
        
        
       con = DriverManager.getConnection("jdbc:mysql://localhost:3306/gooldcar?user=root&password=pauro8022");
       pstm = con.prepareStatement(verifica);
       rs = pstm.executeQuery();
       while (rs.next()){
           rs.getString("");
           return true;
       }
        return false;
       
       
       
       
       
    }
    
    
    
    
    
}
